xentrace: fix lost records resume
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 12 Apr 2010 17:28:33 +0000 (18:28 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 12 Apr 2010 17:28:33 +0000 (18:28 +0100)
commit741bcc86e29e8d46285d46a63225186c74d34bc3
treec8d14c4ce2a3ed2f168e2f52cc0d0e7e7a1211b3
parentb690245b9f1569015522b67c37d846521f0250a8
xentrace: fix lost records resume

Reorder the SCHED_SWITCH trace before the runstate change trace to fix
a problem with the lost records "resume" code.

Namely: The "lost records" trace includes the currently running
process.  But during SCHED_SWITCH, it reads the wrong value, confusing
xenalyze.  Making sure there are no trace records between runstate
change trace and the actual context switch fixes it.

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
xen/common/schedule.c